package com.ea.admin.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ea.admin.pojo.dto.UserInfoDto;
import com.ea.admin.pojo.po.UserInfo;
import com.ea.common.mybatis.EmoAnalyBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoMapper extends EmoAnalyBaseMapper<UserInfo> {
    Page<UserInfoDto> selectUserDtoList(
            Page<UserInfoDto> objectPage,
            @Param("companyIdList") List<Long> companyIdList,
            @Param("deptIdList") List<Long> deptIdList,
            @Param("positionIdList") List<Long> positionIdList,
            @Param("name") String name);

    UserInfo selectUserInfoById(
            @Param("userId") Long userId
    );

    UserInfoDto selectUserDtoById(
            @Param("userId") Long userId
    );
}
